package aufgabe1;

public class Edge {
	private Vertice _start;
	private Vertice _end;
	private int _value;
	
	public Edge(Vertice start, Vertice end, int value){
		_start = start;
		_end = end;
		_value = value;
		
	}
	
	public int getVlaue(){
		return _value;
	}
	
	public Vertice getStart(){
		return _start;
	}
	
	public Vertice getEnd(){
		return _end;
	}

	public void setValue(int val){
		_value = val;
	}
	
	
	@Override
	public String toString() {
		
		return "Edge [_start=" + _start + ", _end=" + _end + ", _value="
				+ _value + "]";
	}
	
}
